package servlet.zj;

import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import dao.zj.AdminDao;
import entity.Member;

/**
 * Servlet implementation class Upadmin
 */
@WebServlet("/Upadmin")
public class Upadmin extends HttpServlet {
	private static final long serialVersionUID = 1L;
	private AdminDao one=new AdminDao();
	protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		int id=Integer.valueOf(request.getParameter("id"));
		Member a=one.query(id);
		request.setAttribute("member", a);
		request.getRequestDispatcher("updateAdministrators.jsp").forward(request, response);
	}
}
